<div style="font-size:10pt;" class="color">
    <a href="{url link='public.groups'}">{language text="groups"}</a>
    &gt;&gt;
    <a href="{url link='public.groups.view' id=$aGroupData.id}">{$aGroupData.title|escape}</a>
    &gt;&gt;
    {language text="group_gallery_947"}
</div>
<br/>
<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
            <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="group_gallery"}</td>
            </tr>
        </table>

        <div style="font-size:8pt;">
        {str_replace text="`viewing_ifrom_ito_out_of_icnt`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }

        {include file="$sRootPath/_blocks/pager_nav_button.html"}

                <div style="text-align:center;">
                <table style="width:100%;margin-left:auto;margin-right:auto;" cellpadding="5" border="0">
                <tr>
                {foreach from=$aImages item=aItem name=aitem}


                        <td style="vertical-align:middle;text-align:center;font-size:8pt;" class="color">
                            {if $smarty.foreach.aitems.iteration is not div by 2}</tr><tr>{/if}

                            {if ($bIsGroupOwner OR $bIsAdmin) AND $aItem.default != '1'}
                                    <div style="padding:5px;font-size:8pt;">
                                        <a class="link_action" href="{url link='public.groups.gallery' id=$aGroupData.id default=$aItem.id}">[ {language text="set_as_default"} ]</a>
                                    </div>
                            {/if}
                            {if ($bIsGroupOwner OR $bIsAdmin) AND $aItem.default == '1'}
                                    <div style="padding:5px;font-size:8pt;">
                                         {language text="default_492"}
                                    </div>
                            {/if}
                            <table align='center' border="0">
                            <tr>
                                <td height="102" width="102" valign="middle">
                                    <a href="{url link='public.groups.gallery' id=$aGroupData.id image=$aItem.id}">{img max_width="100" max_height="100" alt="" src="`$sImageUrl`thumb/`$aItem.id`.jpg" src_def="design/pic/noimage.jpg" def_width="100" def_height="100" border="0"}</a>
                                    <div style="font-size:8pt;">{language text='Mod_Site.added_by'}: <div><a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a></div></div>
                                </td>
                            </tr>
                            </table>
                            {if ($bIsGroupOwner OR $bIsAdmin) OR $sUser == $aItem.user}{* AND $aItem.default != '1' *}
                                <div style="padding:5px;font-size:8pt;">
                                    <a class="link_action" href="{url link='public.groups.gallery' id=$aGroupData.id delete=$aItem.id}" onclick="return confirm('{language text="are_you_sure"}');">[ {language text="delete"} ]</a>
                                </div>
                            {/if}
                        </td>

                        {if $smarty.foreach.aitem.iteration is div by 4}</tr><tr>{/if}
                {/foreach}
                {if $iColspan > 0}
                <td colspan="{$iColspan}">&nbsp;</td>
                {/if}


        </tr></table></div>

        {include file="$sRootPath/_blocks/pager_nav_button.html"}

        </div>
    </td>
</tr>
</table>